package org.samcolon.dubbo.demo1.controller;

import org.samcolon.dubbo.demo1.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @Description:
 * @author: Sam.zhang
 * @date: 2022/4/5 - 21:02
 */
@Controller
public class DemoController {

    @Autowired
    private DemoService demoService;

    @GetMapping("/demo")
    @ResponseBody
    public String deom(){
        return demoService.demo();
    }
}
